package com.example.order.service;

import com.example.order.mapper.OrderMapper;
import com.example.order.model.OrderInfo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class OrderService {

    @Resource
    private OrderMapper orderMapper;

    public int add(OrderInfo orderInfo){
        return orderMapper.add(orderInfo);
    }

    public List<OrderInfo> getList(int uid){
        return orderMapper.getList(uid);
    }

    public List<OrderInfo> getAllList(){
        return orderMapper.getAllList();
    }

    public int up(int oid , int status){
        return orderMapper.up(oid,status);
    }
}
